package com.hisense.hiioc.hismartplate.entity.table;

import com.alibaba.fastjson.annotation.JSONField;
import com.hisense.hiioc.hismartplate.base.IBaseEntity;
import io.swagger.annotations.ApiModel;
import lombok.Data;

import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;
/**
 * @Author: almo
 * @Date: 2018/12/5 下午12:48
 * @Version 1.0
 */
@Data
@ApiModel
@Table(name = "DeviceStateDB")
public class DeviceStateEntity implements IBaseEntity {
    @Id
    private int id;

    private String deviceID;
    private float cpuUsage;
    private float memUsage;
    private String deviceLocation;

    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date time;
}
